import { createApp } from 'vue'

import App from './App.vue'
// 路由守卫
import "./guard/index" 

// 面包屑组件
import breadCrumd from "./components/breadCrumb/index.vue"

import router from "./router/index"

// eventbus
import bus from "./utils/bus"


let app=createApp(App)

// 注册全局组件 所有组件不需要引入都可以使用

app.component("breadCrumd",breadCrumd)

// 将bus添加到全局
app.config.globalProperties.$bus=bus;

app.use(router)

app.mount('#app')
